.active {
    transition: all 0.3s;
    animation: ac 0.5s;
}

@keyframes ac{
    from{transform: scale(0);}
    to{transform: scale(1);}
}